﻿using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Text;

namespace ZGRemote.Common.Message.RemoteFileExplorer
{
    [ProtoContract]
    public class GetFiles : MessageBase
    {
        [ProtoMember(1)]
        public string Path { get; set; }
    }

    [ProtoContract]
    public class GetFilesResponse : MessageBase
    {
        [ProtoMember(1)]
        public bool Status { get; set; }

        [ProtoMember(2)]
        public string Message { get; set; }

        [ProtoMember(3)]
        public string[] FileName { get; set; }

        [ProtoMember(4)]
        public DateTime[] LastWriteTime { get; set; }

        /// <summary>
        /// 0 : File
        /// 1 : Folder
        /// </summary>
        [ProtoMember(5)]
        public byte[] FileType { get; set; }

        [ProtoMember(6)]
        public long[] Size { get; set; }
    }
}
